Repository navigation
Conversation
This was referenced Nov 14, 2026
moetemp
marked this pull request as ready for review
November 14, 2026 00:56
moetemp
changed the base branch from
main
to
moe/fix-flaky-worker-shutdown-tests
November 15, 2026 18:50
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
2 times, most recently
from
November 15, 2026 20:23
1a718b8 to
88cc83e
Compare
moetemp
changed the base branch from
moe/fix-flaky-worker-shutdown-tests
to
moe/stack-only-wait-for-worker-polls
November 16, 2026 17:13
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 16, 2026 17:14
88cc83e to
e982e2a
Compare
moetemp
changed the base branch from
moe/stack-only-wait-for-worker-polls
to
moe/fix-flaky-worker-shutdown-tests
November 16, 2026 17:32
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
2 times, most recently
from
November 16, 2026 19:42
2c3fa47 to
1bb78ad
Compare
moetemp
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 23, 2026 22:34
1bb78ad to
61e632d
Compare
A Local Activity runs again with the same Activity id and with attempt 1 when its Workflow Task is retried, and nothing in `activity.Info` tells the two executions apart or orders them. `Info.workflow_task` has the started event id, the attempt and the started time of that task, which Core sends for a Local Activity.
Each PR with a change that users see needs a fragment.
VegetarianOrc
force-pushed
the
moe/activity-workflow-task-info
branch
from
November 25, 2026 23:53
ede7c0c to
d0e5375
Compare
activity.Info for a Local ActivityThis branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
This PR adds
activity.Info.workflow_taskfor Local Activities. It contains the started event ID, attempt and optional start time. Other Activities receiveNone. The API is experimental.Why?
A Local Activity can execute again after a Workflow Task retry. This value identifies the task that dispatched each execution.
Reviewer's guide
WorkflowTaskAttemptandInfo.workflow_taskintemporalio/activity.py. The field stays optional for Activities without Workflow Task information.temporalio/worker/_activity.py. An absent task or timestamp staysNone.test_activity_info_workflow_taskintests/worker/test_activity.py. It compares all fields with History and checks a regular Activity. Workflow Task retry behavior is owned by Core.Checklist